package com.mframe.activiti.service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mframe.activiti.domain.AuditDetail;
import com.mframe.activiti.mapper.AuditDetailMapper;
import com.mframe.activiti.service.IAuditDetailService;
import com.mframe.common.support.Convert;

/**
 * 审核细节 服务层实现
 * 
 * @author mframe
 * @date 2018-11-13
 */
@Service
public class AuditDetailServiceImpl implements IAuditDetailService {
	@Autowired
	private AuditDetailMapper auditDetailMapper;

	/**
	 * 查询审核细节信息
	 * 
	 * @param id
	 *            审核细节ID
	 * @return 审核细节信息
	 */
	@Override
	public AuditDetail selectAuditDetailById(Integer id) {
		return auditDetailMapper.selectAuditDetailById(id);
	}

	/**
	 * 查询审核细节列表
	 * 
	 * @param auditDetail
	 *            审核细节信息
	 * @return 审核细节集合
	 */
	@Override
	public List<AuditDetail> selectAuditDetailList(AuditDetail auditDetail) {
		return auditDetailMapper.selectAuditDetailList(auditDetail);
	}

	/**
	 * 新增审核细节
	 * 
	 * @param auditDetail
	 *            审核细节信息
	 * @return 结果
	 */
	@Override
	public int insertAuditDetail(AuditDetail auditDetail) {
		return auditDetailMapper.insertAuditDetail(auditDetail);
	}

	/**
	 * 修改审核细节
	 * 
	 * @param auditDetail
	 *            审核细节信息
	 * @return 结果
	 */
	@Override
	public int updateAuditDetail(AuditDetail auditDetail) {
		return auditDetailMapper.updateAuditDetail(auditDetail);
	}

	/**
	 * 删除审核细节对象
	 * 
	 * @param ids
	 *            需要删除的数据ID
	 * @return 结果
	 */
	@Override
	public int deleteAuditDetailByIds(String ids) {
		return auditDetailMapper.deleteAuditDetailByIds(Convert.toStrArray(ids));
	}

}
